package com.bjpowernode.services;

import com.bjpowernode.beans.NewsType;
import com.bjpowernode.exception.MyException;

import java.util.ArrayList;

public interface NewsTypeServices {

    ArrayList<NewsType> getAll();

    NewsType get(int id);

    void add(NewsType newsType) throws MyException;

    void edit(NewsType newsType) throws MyException;

    void del(int id) throws MyException;

}
